<template>
  <!-- 碳核算界面母版 -->
  <header>
    <TopMenu></TopMenu>
  </header>
  <main style="height: 400px">
    <el-row>
      <el-col :span="4">
        <SideMenu :routes="routes" />
      </el-col>
      <el-col :span="20">
        <router-view />
      </el-col>
    </el-row>
  </main>
</template>

<script lang="ts" setup>
import TopMenu from '@/components/Menu/TopMenu.vue'
import SideMenu from '@/components/Menu/SideMenu.vue'

const routes = [
  {
    path: '/count/home',
    name: 'counthome',
    menuTitle: '碳核算',
    component: () => import('@/views/CarbonCount/CountHome.vue')
  },
  {
    path: '/count/cal',
    name: 'cal',
    menuTitle: '碳核算模型',
    component: () => import('@/views/CarbonCount/CountCal.vue')
  },
  {
    path: '/count/upload',
    name: 'countupload',
    menuTitle: '核算数据上传',
    component: () => import('@/views/CarbonCount/UploadData.vue')
  }
]
</script>
<style scoped></style>
